package com.lihui.test;

import com.lihui.queue.MyQueue;

/**
 * 功能描述
 *
 * @author wileda
 * @date 2022/10/18  21:51
 */
public class Demo01 {
    public static void main(String[] args) {
        MyQueue myQueue = new MyQueue();
        myQueue.offer(12);
        myQueue.offer(23);
        myQueue.offer(34);
        myQueue.offer(45);
        myQueue.offer(56);
        myQueue.display();
        System.out.println(myQueue.size());
        System.out.println("=======================");
        System.out.println(myQueue.peek());
        myQueue.poll();
        myQueue.display();
    }
}